From: Gianfranco Costamagna Date: Wed, 6 Jul 2022 00:44:32 +0000 (+0100) Subject: fix tautological enum compare warnings when built with clang 9 X-Git-Tag: archive/raspbian/7.0_repack-10+rpi1~3^2~8 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7e17b701f571d021ae2d8e1e09e4b8d3d6fc0c78;p=wine.git fix tautological enum compare warnings when built with clang 9 Forwarded: pending Last-Update: 2019-12-31 Gbp-Pq: Topic arm64 Gbp-Pq: Name tautological-compare.patch --- diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 65cdf96..1684b1c 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -6972,8 +6972,8 @@ GpStatus WINGDIPAPI GdipTransformPoints(GpGraphics *graphics, GpCoordinateSpace GpCoordinateSpace src_space, GpPointF *points, INT count) { if(!graphics || !points || count <= 0 || - dst_space < 0 || dst_space > CoordinateSpaceDevice || - src_space < 0 || src_space > CoordinateSpaceDevice) + dst_space > CoordinateSpaceDevice || + src_space > CoordinateSpaceDevice) return InvalidParameter; if(graphics->busy)